home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _8BAE4972DF244E529C62F34C063A9BD6 < prev    next >
Encoding:
Text File  |  2004-07-20  |  5.8 KB  |  244 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BROKEN
  6. // $BROKENOPTIONSFILE
  7. // $SPECPOW
  8. // $REFL_STRENGTH
  9. // $CULLING
  10.  
  11.  
  12. shader()
  13. {
  14.     ShaderQuality(3)
  15.     pass()
  16.     {
  17.         //Lighting()
  18.         Pixelshader("CarGB_CmCd_ps14.psh")
  19.         Vertexshader("CarGB_CmCd_ps14.vsh")
  20.  
  21.         !include("__tex1.mtt")
  22.         !include("__Dirt.mtt")
  23. //        !include("__TerrainColormapVS.mtt")
  24.         !include("__TerrainColormapSmallVS.mtt")
  25.         !include("__CloudsVS.mtt")
  26. //        !include("__DynamicCubeMap.mtt")
  27.         !include("__CubeMap.mtt")
  28.         !include("__Broken.mtt")        
  29.  
  30.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  31.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  32.  
  33.         !include(BFUNC)
  34.     }
  35.     sortweight("depth_sorted")
  36.     Cull(CULLING)
  37. }
  38.  
  39.  
  40. shader()
  41. {
  42.     ShaderQuality(2)
  43.     pass()
  44.     {
  45.         //Lighting()
  46.         Pixelshader("CarG_Cm_ps11.psh")
  47.         Vertexshader("CarG_Cm_ps11.vsh")
  48.  
  49.         !include("__tex1.mtt")
  50.         !include("__Dirt.mtt")
  51.         !include("__TerrainColormapSmallVS.mtt")
  52. //        !include("__DynamicCubeMap.mtt")
  53.         !include("__CubeMap.mtt")
  54.  
  55.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  56.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  57.  
  58.         !include(BFUNC)
  59.     }
  60.     pass()
  61.     {
  62.         //Lighting()
  63.         Pixelshader("CarGB_pass2_ps11.psh")
  64.         Vertexshader("CarGB_pass2_ps11.vsh")
  65.  
  66.         !include("__Broken.mtt")
  67.         !include("__TerrainColormapSmallVS.mtt")        
  68.  
  69.         BlendFunc("one", "one")
  70.     }
  71.     
  72.     sortweight("depth_sorted")
  73.     Cull(CULLING)
  74. }
  75.  
  76.  
  77.  
  78. shader()
  79. {
  80.     ShaderQuality(1)
  81.     pass()
  82.     {
  83.         Pixelshader("CarGB_ps11.psh")
  84.         Vertexshader("CarGB_ps11.vsh")
  85.  
  86.         !include("__tex1.mtt")
  87.         !include("__Dirt.mtt")
  88.         !include("__TerrainColormapSmallVS.mtt")
  89.         !include("__Broken.mtt")        
  90.  
  91.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  92.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  93.  
  94.         !include(BFUNC)
  95.     }
  96.     
  97.     sortweight("depth_sorted")
  98.     Cull(CULLING)
  99. }
  100.  
  101. //=========================== GF2 ======================================
  102. shader()
  103. {
  104.     ShaderQuality(2)
  105.     pass()
  106.     {
  107.         Lighting()
  108.         tmu()
  109.         {
  110.             Texture()
  111.             {
  112.                 Mapchannel(0)
  113.                 Image(TEXTURE1)
  114.                 !include(TEX1OPTIONSFILE)
  115.             }
  116.             ColorOp("mul", "current", "texture", "current")
  117.             AlphaOp("arg1", "texture_a", "current", "current")
  118.         }
  119.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  120.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  121.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  122.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  123.         SpecularPow(SPECPOW)
  124.         BlendFunc("one", "inv_src_alpha")
  125.                
  126.     }
  127.     pass()
  128.     {
  129.         Lighting()
  130.         tmu()
  131.         {
  132.             Texture()
  133.             {
  134.                 Mapchannel(0)
  135.                 Image(DIRT_GF2)
  136.                 !include(DIRTOPTIONSFILE)
  137.             }
  138.             ColorOp("mul", "tfactor", "current", "current")
  139.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  140.         }
  141.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  142.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  143.         
  144.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  145.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  146.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  147.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  148.         SpecularPow(0.0)
  149.         BlendFunc("src_alpha", "inv_src_alpha")
  150.     }
  151.     pass()
  152.     {
  153.         Lighting()
  154.         !include("__Broken.mtt")
  155.  
  156.         !include("__LightningColorsSpecGF2.mtt")  
  157.         BlendFunc("one", "one")
  158.     }
  159.  
  160.     pass()
  161.     {
  162.         Lighting()
  163.         tmu()
  164.         {
  165.             TexGen("planar")
  166.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  167.             texture()
  168.             {
  169.                 Image(%colortexturesmall)
  170.                 addressfunc("clamp", "clamp", "clamp")
  171.             }
  172.             ColorOp("arg1", "tfactor", "current", "diffuse_a")
  173.             AlphaOp("add", "texture_a", "tfactor_a", "current")
  174.         }
  175.  
  176.         tmu()
  177.         {
  178.             ColorOp("arg1", "current", "texture", "current")
  179.             AlphaOp("add", "current", "diffuse_a", "current")
  180.         }         
  181.  
  182.         tfactor(0.0, 0.0, 0.0, %daycolor_a)
  183.  
  184.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  185.         DiffuseColor(0.0, 0.0, 0.0, 0.3)
  186.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  187.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  188.         SpecularPow(0.0)
  189.         
  190.         BlendFunc("inv_src_alpha", "src_alpha")        
  191.  
  192.         
  193.     }                    
  194. // odremowac po poprawce kuby ( liczba passow)
  195.     lightpass()
  196.     !include("spot_spotmap.mtt")    
  197.     
  198.     sortweight("depth_sorted")
  199.     Cull(CULLING)
  200. }
  201. //=======================================================
  202. /*
  203. shader()
  204. {
  205.     ShaderQuality(0)
  206.     pass()
  207.     {
  208.         Lighting()
  209.         Pixelshader("CarGB_sq0.psh")
  210.         Vertexshader("Common_specular.vsh")
  211.         !include("__tex1.mtt")
  212.         !include("__Broken.mtt")        
  213.         !include(BFUNC)        
  214.     }
  215.     sortweight("depth_sorted")
  216.     Cull(CULLING)
  217. }
  218. */
  219. shader()
  220. {
  221.     ShaderQuality(0)
  222.     pass()
  223.     {
  224.         Lighting()
  225.         !include("__tex1.mtt")
  226.  
  227.         !include("__LightningColorsSpecGF2.mtt")          
  228.         !include(BFUNC)
  229.     }
  230.     pass()
  231.     {
  232.         Lighting()
  233.         !include("__Broken.mtt")
  234.  
  235.         !include("__LightningColorsSpecGF2.mtt")  
  236.         BlendFunc("one", "one")
  237.     }
  238. //    lightpass()
  239. //    !include("spot_spotmap.mtt")    
  240.     sortweight("depth_sorted")
  241.     Cull(CULLING)
  242. }
  243.  
  244.